<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021-10-22
  Time: 16:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>查询该房东房源</title>
</head>
<body>
    <h1>查询该房东号所有房源</h1>
    <form>
        房东ID:<input type="text" name="housewonId" class="housewonId"/>
        <input type="button" class="searchBtn" value="查询">
    </form>
    <script>
        // shop/1/dish

        document.querySelector(".searchBtn").onclick = function (){
            var housewonId = document.querySelector(".housewonId").value;
            console.log("housewonId:"  + housewonId);

            window.location.href ="${pageContext.request.contextPath}/house_owner/"+ housewonId +"/hotel";
        }

    </script>
</body>
</html>
